<?php
/**
 * Created by PhpStorm.
 * User: zyark
 * Date: 2017/5/31
 * Time: 10:54
 */

namespace Home\Model;


use Think\Model;

class UsersModel extends Model
{
    public function _before_insert(&$data, $options)
    {
        $data['reg_time'] = time();
    }
}